package com.antu.first.dto;

import com.antu.first.bean.Indent;
import com.antu.first.enums.IndentStateEnum;

import java.util.List;

/**
 * 订单处理逻辑结果整合
 * Created by Administrator on 2018/3/5.
 */
public class IndentOperationExecution {

    private int state;

    private String stateInfo;

    private int count;

    private Indent indent;

    private List<Indent> indents;

    /**
     * 在订单操作执行失败时执行的构造函数
     * @param indentStateEnum
     */
    public IndentOperationExecution(IndentStateEnum indentStateEnum) {
        this.state = indentStateEnum.getState();
        this.stateInfo = indentStateEnum.getStateInfo();
    }

    /**
     * 在订单操作执行成功时执行的构造函数
     * @param indentStateEnum
     * @param indent
     */
    public IndentOperationExecution(IndentStateEnum indentStateEnum, Indent indent) {
        this.state = indentStateEnum.getState();
        this.stateInfo = indentStateEnum.getStateInfo();
        this.indent = indent;
    }

    /**
     * 在订单操作执行成功时执行的构造函数
     * @param indentStateEnum
     * @param indents
     */
    public IndentOperationExecution(IndentStateEnum indentStateEnum, List<Indent> indents) {
        this.state = indentStateEnum.getState();
        this.stateInfo = indentStateEnum.getStateInfo();
        this.indents = indents;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Indent getIndent() {
        return indent;
    }

    public void setIndent(Indent indent) {
        this.indent = indent;
    }

    public List<Indent> getIndents() {
        return indents;
    }

    public void setIndents(List<Indent> indents) {
        this.indents = indents;
    }
}
